package com.lyy.entity.Param;

import com.lyy.entity.Clazz;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.Date;

/**
 * @author Liangyaoyun
 */
@Data
public class StudentParam implements Serializable {
    @NotEmpty(message = "真实姓名不能为空")
    @Size(min = 2,max = 5)
    private String realName;

    @NotNull(message = "性别不能为空")
    @Range(min = 0,max = 2)
    private Integer gender;

    @NotEmpty(message = "手机号不能为空")
    @Size(min = 11,max = 11)
    private String phone;

    @NotNull(message = "所在班级不能为空")
    private Integer clazzId;
}
